textContent

abstract fun textContent(): String

Returns the text content of the current node and its descendants.

Throws

when this node is closed


abstract fun textContent(textContent: String)

Removes all the current node children and replaces them with a single text node with the given textContent.

Parameters

textContent

the new text content of the current node

Throws

when this node is closed